package com.jmy.mapper;

import com.jmy.pojo.Admin;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * @author: VE
 * @DATE: 2022/9/27 13:56
 * 描述:
 */
@Mapper
public interface AdminMapper {


    int insert(Admin admin);

    int delete(int aId);


    int update(Admin admin);


    Admin load(int aId);


    Admin getAdminByName(@Param("aName") String aName);

    List<Admin> getAdminList();

    void deleteAdminRoles(Integer aid);


    void addAdminRoles(@Param("aid") Integer aid, @Param("roles") String[] roles);
}